package cn.edu.sdyu.ie.crs.service;

import cn.edu.sdyu.ie.crs.domain.Classroom;
import cn.edu.sdyu.ie.crs.domain.ClassroomBuilding;
import org.springframework.data.domain.Page;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public interface ClassroomBuildingService {

    /**
     * 查询所有教学楼信息
     * @return
     */
    List<ClassroomBuilding> findAll();

    /**
     *
     * @param page 页码
     * @param pageSize 分页大小
     * @return
     */
    Page<ClassroomBuilding> findByPage(Integer page, Integer pageSize);

    /**
     * 根据教学楼ID查询教学楼信息
     * @param id 教学楼Id
     * @return
     */
    ClassroomBuilding findClassroomBuildingById(Integer id);

    /**
     * 保存教学楼信息
     * @param classroomBuilding 教学楼对象
     */
    void saveClassroomBuilding(ClassroomBuilding classroomBuilding);

    /**
     * 根据教学楼ID删除教学楼信息
     * @param id
     */
    void deleteClassroomBuildingById(Integer id);

}

